/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package exif_to_kml;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class ShowImage extends JPanel {
  BufferedImage  image;
  public ShowImage(File iFile) {
  try {
  
  image = ImageIO.read(iFile);
  } catch (IOException ie) {
  System.out.println("Error:"+ie.getMessage());
  }
  }
  public ShowImage(BufferedImage iFile) {
        image = iFile;

  }

  public void paint(Graphics g) {
  g.drawImage( image, 0, 0, null);
  }

  static public void main(String args[]) throws
Exception {
    }
}
